/*
package org.smart4j.chapter2.controller;

*/
/**
 * Created by Ricky on 2019/3/20.
 *//*


import org.smart4j.chapter2.model.Customer;
import org.smart4j.chapter2.service.CustomerService;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.tags.Param;

import javax.inject.Inject;
import javax.swing.text.View;
import javax.xml.ws.Action;
import java.util.List;

*/
/**
 * 处理客户管理相关请求
 *//*

@Controller
public class CustomerController {
    @Inject
    private CustomerService customerService;
    */
/**
     * 进入客户列表界面
     *//*

    @Action("get:/customer")
    public View index(Param param) {
        List<Customer> customerList=customerService.getCustomerList();
        return new View("customer.jsp").addModel("customerList",customerList);
    }
    */
/**
     * 显示客户基本信息
     *//*

    @Action("get:/customer_show")
    public View show(Param param){
        long id = param.getLong("id");
        Customer customer = customerService.getCustomer(id);
        return new View("customer_show.jsp").addModel("customer",customer);
    }

    */
/**
     * 删除客户信息
     * @param param
     * @return
     *//*

    @Action("delete:/customer_edit")
    public Data delete(Param param){
        long id = param.getLong(id);
        boolean result = customerService.deleteCustomer(id);
        return new Data(result);
    }
}
}
*/
